public class showPrimeNumber{ 
  public static void main( String args[] ){
     int number=(int)(Math.random()*1000)+2;
     int sqrt;
     int i;
outer:for(number=3; number<200; number+=2){
       sqrt=(int)Math.sqrt(number);
       for(i=2; i<=sqrt; i++)
         if( number%i==0 )
           break outer;
       System.out.println(number+" ");
    } 
  }  
}  